const TokenKey = 'App-Token'
import {
	appInfo
} from '@/config'

export function getToken () {
	const newTokenKey = TokenKey + appInfo.version
	return uni.getStorageSync(newTokenKey)
}
export function setToken (token) {
	const newTokenKey = TokenKey + appInfo.version
	return uni.setStorageSync(newTokenKey, token)
}

export function removeToken () {
	return uni.removeStorageSync(TokenKey)
}